//
//  RichError.h
//  Rich
//
//  Created by Kenny Chen on 13/2/22.
//  Copyright (c) 2013年 Kenny Chen. All rights reserved.
//

#ifndef Rich_RichError_h
#define Rich_RichError_h

#define RICH_OK 0

/* Core Errors */
enum CoreErrors {
    ERROR_CORE_INVALID_PARM = 1,
    ERROR_CORE_UNINITIALIZED,
    ERROR_CORE_ID_NOT_FOUND,
    ERROR_CORE_OCCUPIED,
    ERROR_CORE_DB_QUERY,
    ERROR_CORE_INVALID_ACCOUNT,
    ERROR_CORE_INVALID_CATEGORY,
    ERROR_CORE_INVALID_TRANSACTION,
    ERROR_CORE_INVALID_TRANSACTION_TYPE,
    ERROR_CORE_INVALID_TRANSACTION_INSTALLMENT,
    ERROR_CORE_INVALID_CREDIT_CARD_BILL
};

/* Sqlite Manager Errors */
enum SqliteManagerErrors {
    ERROR_SQLITE_OPEN = 1001,
    ERROR_SQLITE_FOREIGN_KEY,
    ERROR_SQLITE_INVALID_SQL,
    ERROR_SQLITE_EXEC_SQL,
};

#endif
